import Vue from 'vue';
import Vuex from 'vuex';
import user from './modules/user';
import VuexPersistence from 'vuex-persist';
console.log(user, 'user');
const vuexLocal = new VuexPersistence({
	storage: window.localStorage
});

Vue.use(Vuex);

const store = new Vuex.Store({
	strict: process.env.NODE_ENV !== 'production',
	modules: {
		user
	},
	plugins: [vuexLocal.plugin]
});
export default store;
